/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.borrow.dao;

import com.thinkgem.jeesite.common.persistence.CrudDao;
import com.thinkgem.jeesite.common.persistence.annotation.MyBatisDao;
import com.thinkgem.jeesite.modules.borrow.entity.Borrow;
import org.apache.ibatis.annotations.Param;


/**
 * 借阅DAO接口
 * @author ThinkGem
 * @version 2014-05-16
 */
@MyBatisDao
public interface BorrowContinueDao extends CrudDao<Borrow> {


    //续借
    int insertcontinue(@Param("zlId") String zlId,
                       @Param("rtnDate") String rtnDate,
                       @Param("continurtnday") String continurtnday,
                       @Param("userName") String userName,
                       @Param("status") String status);


    //在用户借出记录中，查询续借的次数
    int getContinucountbyzlidlist(String zlidlist);


    //归还时更新续借记录
    int updateContinuestatus(String zlId, String status);


    //更新已经存在的记录
    void updateCont(String zlId, String continuday, String continurtnday, String userName, String s);
}
